﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Light.Utility.HtmlTable
{
    public class FontSetter
    {
        
        private bool _bold = false;
        private static FontSetter _default = new FontSetter();
        private Color _fontColor = Color.Black;
        private string _fontFace = "Tahoma";
        private int _fontSize = 8;
        private bool _italic = false;

        
        public void CopyFrom(FontSetter fs)
        {
            this.Bold = fs.Bold;
            this.FontColor = fs.FontColor;
            this.FontFace = fs.FontFace;
            this.FontSize = fs.FontSize;
            this.Italic = fs.Italic;
        }

        public bool Equals(FontSetter fs)
        {
            if ((((this.Bold != fs.Bold) || (this.FontColor != fs.FontColor)) || ((this.FontFace != fs.FontFace) || (this.FontSize != fs.FontSize))) || (this.Italic != fs.Italic))
            {
                return false;
            }
            return true;
        }

        
        public bool Bold
        {
            get
            {
                return this._bold;
            }
            set
            {
                this._bold = value;
            }
        }

        public static FontSetter Default
        {
            get
            {
                _default.FontColor = Color.Black;
                _default.FontSize = 8;
                _default.FontFace = "Tahoma";
                _default.Bold = false;
                _default.Italic = false;
                return _default;
            }
        }

        public Color FontColor
        {
            get
            {
                return this._fontColor;
            }
            set
            {
                this._fontColor = value;
            }
        }

        public string FontFace
        {
            get
            {
                return this._fontFace;
            }
            set
            {
                this._fontFace = value;
            }
        }

        public int FontSize
        {
            get
            {
                return this._fontSize;
            }
            set
            {
                this._fontSize = value;
            }
        }

        public bool Italic
        {
            get
            {
                return this._italic;
            }
            set
            {
                this._italic = value;
            }
        }
    }



}
